package com.cykj.controller;

import com.cykj.dto.ResponseDto;
import com.cykj.service.ConsultingRecordService;
import com.cykj.vo.ConsultingRecordVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: Psychology
 * @BelongsPackage: com.cykj.controller
 * @Author: 小林
 * @CreateTime: 2025-02-16 21:44
 * @Description: 评估表记录
 * @Version: 1.0
 */
@RestController
@RequestMapping("/record")
public class ConsultingRecordController {
    @Autowired
    private ConsultingRecordService consultingRecordService;

    /**
     * 插入记录
     * @param vo
     * @return
     */
    @RequestMapping("/addRecord")
    public ResponseDto addRecord(@RequestBody ConsultingRecordVo vo){
      return  consultingRecordService.addRecord(vo);
    }

    /**
     * 获取全部
     * @param vo
     * @return
     */
    @RequestMapping("/getAll")
    public ResponseDto getAll(@RequestBody ConsultingRecordVo vo){
      return  consultingRecordService.getAll(vo);
    }


}

